<template>
  <div class="app">
    <div class="btns">
      <el-button type="primary" size="small" @click="goPage('/user')">用户管理</el-button>
      <el-button type="primary" size="small" @click="goPage('/shopping-cart')">购物车</el-button>
      <el-button type="primary" size="small" @click="goPage('/extend')">扩展</el-button>
    </div>
    <router-view></router-view>

  </div>
</template>

<script>
  export default {
    methods:{
      goPage(page){
        this.$router.push(page)
      }
    }
  }
</script>

<style lang="less" scoped>

</style>